package P5721;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int num = 1;
        for (int i = n ;i>0;--i){
            for (int j = 0; j<i;++j ){
                if (num < 10) System.out.print("0"+num);
                else System.out.print(num);
                num++;
            }
            System.out.print('\n');
        }
    }
}
